﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PreeRegisterModel
{
    /// <summary>
    /// 更新预约执行情况请求类
    /// </summary>
    public class OrderExeInfoRequestModel
    {
        /// <summary>
        /// 头信息
        /// </summary>
        public Head head { get; set; }
        /// <summary>
        /// 内容信息
        /// </summary>
        public OrderExeInfoModel body { get; set; }
    }

    /// <summary>
    /// 更新预约执行情况请求内容类
    /// </summary>
    public class OrderExeInfoModel
    {
        /// <summary>
        /// 检索类型 1、指定范围同步预约执行情况  2、指定ID同步预约执行情况
        /// </summary>
        public string optype { get; set; }
        /// <summary>
        /// 医院ID
        /// </summary>
        public string hospid { get; set; }
        /// <summary>
        /// 科室ID
        /// </summary>
        public string dept { get; set; }
        /// <summary>
        /// 医生ID
        /// </summary>
        public string docid { get; set; }
        /// <summary>
        /// 请求同步数据的日期
        /// </summary>
        public string dates { get; set; }
        /// <summary>
        /// 同步预约执行情况存在问题的订单ID,多个时以逗号分隔
        /// </summary>
        public string ids { get; set; }
    }

    /// <summary>
    /// 更新预约执行情况返回类
    /// </summary>
    public class OrderExeInfoResponseModel
    {
        /// <summary>
        /// 头信息
        /// </summary>
        public Head head { get; set; }
        /// <summary>
        /// 内容信息
        /// </summary>
        public OrderExeInfoBodyModel body { get; set; }
    }

    /// <summary>
    /// 内容类
    /// </summary>
    public class OrderExeInfoBodyModel
    {
        /// <summary>
        /// 医院ID
        /// </summary>
        public string hospid { get; set; }
        /// <summary>
        /// 订单信息
        /// </summary>
        public List<OrderInfoModel> orders { get; set; }
    }

    /// <summary>
    /// 订单类
    /// </summary>
    public class OrderInfoModel
    {
        /// <summary>
        /// 订单ID
        /// </summary>
        public string oid { get; set; }
        /// <summary>
        /// 订单状态
        /// </summary>
        public string state { get; set; }

        /// <summary>
        /// 医院侧订单状态
        /// </summary>
        public string hospstate { get; set; }

        /// <summary>
        /// 医院侧订单状态 英文
        /// </summary>
        public string hospstateEn { get; set; }

        #region 为取消预约提供数据而加 跟预约执行情况同步无关
        public string patientId { get; set; }

        public string card { get; set; }
        public string birth { get; set; }
        public string gender { get; set; }
        public string addr { get; set; }

        public string doctorid { get; set; }

        public string iid { get; set; }
        public string name { get; set; }
        public string tel { get; set; }
        public string source { get; set; }
        #endregion
    }
}
